package com.modelclient.baselib.http;

import com.modelclient.baselib.model.CommonBaseResponse;
import com.modelclient.baselib.model.MineDataBean;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * 作者：Hxm
 * 创建时间：2017/6/22 15:56
 * 功能说明：
 */

public interface Api {

    @Multipart
    @POST("1/customer/logout")
    io.reactivex.Observable<CommonBaseResponse> logout(@Part List<MultipartBody.Part> parts);

    @Multipart
    @POST("1/customer/index")
    io.reactivex.Observable<CommonBaseResponse<MineDataBean>> getCustomerInfo(@Part List<MultipartBody.Part> parts);

    @Multipart
    @POST("1/customer/cancel_subcribe")
    io.reactivex.Observable<CommonBaseResponse> cancelSubscribe(@Part List<MultipartBody.Part> parts);

}
